export default {
    namespaced: true,
    state: {
        staticGlobal: {
            workRoom: 0,
            carPlace: 0,
            enterprise: 0,
            employee: 0,
        },
        emInOutTend: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
        emInOutTendxAxis: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30],
        emInOutMonth: [0, 0, 0, 0, 0, 0],
        emInOutMonthxAxis: ['1月', '2月', '3月', '4月', '5月', '6月'],
        emAttendinWeek: [
            { value: 1, name: "七日活跃出勤员工" },
            { value: 1, name: "七日非活跃出勤员工" },
        ],
        enterpriseTop5: [
            { name: '大数据', value: 100 },
            { name: '大数据', value: 100 },
            { name: '大数据', value: 100 },
            { name: '大数据', value: 100 },
            { name: '大数据', value: 100 },
        ],
        emAgeDis: [1, 1, 1, 1, 1],
        emGenderDis: {
            male: 50,
            female: 50,
        },
        enterpriseExtinct: [
            {
                name: "大数据",
                value: 10,
            }
        ],
        enterpriseShow: [
            {
                name: '大数据',
                value: 1
            },
        ],
        crowNumber: [0, 0, 0, 0],
        singleEnter: { "id": 1, "userId": 1, "uName": "admin", "uPhone": "00000000000", "cId": 1, "cTitle": "company", "state": 1, "time": "2022-12-16 00:00:00", "notified": 0 },
        weatherPrivateKey: "SzkqTNE81WzB2FWSa",
    },
    getters: {},
    mutations: {
        //只能同步的函数
        setStaticGlobal(state, staticGlobal) {
            state.staticGlobal = staticGlobal
        },
        setSingleEnter(state, singleEnter) {
            state.singleEnter = singleEnter
        },
        setEmInOutTend(state, emInOutTend) {
            state.emInOutTend = emInOutTend
        },
        setEmInOutTendxAxis(state, emInOutTendxAxis) {
            state.emInOutTendxAxis = emInOutTendxAxis
        },
        setEmInOutMonth(state, emInOutMonth) {
            state.emInOutMonth = emInOutMonth
        },
        setEmAttendinWeek(state, emAttendinWeek) {
            state.emAttendinWeek = emAttendinWeek
        },
        setEnterpriseTop5(state, enterpriseTop5) {
            state.enterpriseTop5 = enterpriseTop5
        },
        setEnterpriseExtinct(state, enterpriseExtinct) {
            state.enterpriseExtinct = enterpriseExtinct
        },
        setEmAgeDis(state, emAgeDis) {
            state.emAgeDis = emAgeDis
        },
        setEmGenderDis(state, emGenderDis) {
            emGenderDis.male = parseFloat(emGenderDis.male);
            emGenderDis.female = parseFloat(emGenderDis.female);
            state.emGenderDis = emGenderDis
        },
        setEmInOutMonthxAxis(state, emInOutMonthxAxis) {
            state.emInOutMonthxAxis = emInOutMonthxAxis
        },
        setCrowNumber(state, crowNumber) {
            state.crowNumber = crowNumber
        },
        setEnterpriseShow(state, enterpriseShow) {
            state.enterpriseShow = enterpriseShow
        },
    },
    actions: {},
}